package control;

import java.util.Observable;

import play.game;
import play.score;

import tag.constants;

public class stepper extends Observable implements Runnable,constants
{
	int step=0;
	
    public void run(){
    	
     synchronized(this){
    	 
            while(!game.gameEnds)
            {
                
                setChanged();
                score.time=step++;
                notifyObservers( ""+step );
                try {
                	this.wait(speed);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
            }
            
            System.out.println("log game over there and show menu");
     }
     
    }
}